<%= javascript_include_tag "jquery" %>
<%= javascript_include_tag "add_row" %>
<link rel="stylesheet" type="text/css" href="/stylesheets/editlyst.css"/>
<%= error_messages_for 'checklist' %>
<% form_for :checklist, @checklist, :url=>{:action=>"save", :id=>params[:id]} do |form| %>
<h2>Checklist For :</h2>
<%= form.text_field :name %>
<h3>Tags (seperate with comma ','): </h3>
<%= form.text_field :tag_list %>
<h4>Steps for:</h4>
<div id="items">
    <ul id="item_list" type="none">
        <%= render :partial => 'items', :collection => @items %>
    </ul>
</div>
<a href="#" id="add_item">Add another item</a>
</br>
<%= submit_tag "Save" %> or <%= link_to "Cancel", :action => "index" %>
<% end %>
